<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<head>

</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 系统反馈 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>

<article class="page-container">
	<div class="cl pd-5 bg-1 bk-gray">
		<!-- 搜索栏 -->
		<div class="row">
			<label class="form-label col-xs-1">标签:</label>
			<div class="formControls col-xs-3">
				<input type="text" class="input-text" id="lable" name="lable" />
			</div>
		</div>
		<div class="formControls col-xs-3 text-r">
			<a href="javascript:query();" class="btn btn-success radius"><i class="Hui-iconfont">&#xe665;</i> 查询</a>
			<a href="javascript:void(0);" onclick="reset(this)" class="btn btn-secondary radius"><i class="Hui-iconfont">&#xe665;</i> 重置</a>
		</div>
	</div>
	<div class="mt-20">
		<table class="table table-border table-bordered table-bg table-sort">
			<thead>
				<tr class="text-c">
					<th width="25">序号</th>
					<th width="200">标签</th>
					<th width="400">内容</th>
					<th width="100">提交人</th>
					<th width="200">提交时间</th>
					<th width="100">操作</th>
				</tr>
			</thead>
		</table>
	</div>
</article>
<script type="text/javascript">
var datatable = null;
$(function(){
	datatable = $('.table-sort').DataTable({
		pagingType: "input",
		"sScrollX": "100%",  
		"sScrollXInner": "100%",  
		"bScrollCollapse": true,
		ordering:false,
		ajax: {
			url: "${ctx}/feedBacks/queryByPage",
			type: 'post',
			data: function(d) {
                d.search_LIKE_lable=$('#lable').val();
            }
		},
		fnDrawCallback:function(oSettings){//表格画完的回调函数
			var obj = oSettings.json.otherData;
        },
		columns: [{
			"data": null,
			"class": "text-c",
			"render":function(data, type, row, meta){
				return  meta.row + 1;
			}
		},{
            "data": "lable",
            "defaultContent": "",
            "class": "text-c",
            "render" : function (data, type, row, meta) {
                return abbr(data,40);
            }
        },{
            "data": "content",
            "defaultContent": "",
            "class": "text-c",
            "render" : function (data, type, row, meta) {
                return abbr(data,70);
            }
        },{
            "data": "createBy.nickName",
            "defaultContent": "",
            "class": "text-c",
            "render" : function (data, type, row, meta) {
               return data;
            }
        },{
            "data": "createDate",
            "defaultContent": "",
            "class": "text-c",
            "render" : function (data, type, row, meta) {
                return abbr(data,70);
            }
        },{
            "data": null,
            "class": "text-c",
            render: function(data, type, row, meta) {
                var btns = new Array();
                btns[btns.length] = butInfo("&#xe6df;","编辑","layer_show('修改','${ctx}/feedBacks/findOne?id="+row.id+"','770','350')");
               	btns[btns.length] = butInfo("&#xe6e2;","删除","delEntity('${ctx}/feedBacks/deleteEntity.do','"+row.id+"',true)");
                return getDTOperateBtn(btns);
            }
        }],
		initComplete:function(data){
		}
	});
})

</script>
</body>
</html>